
//pc端适配
.chat {
  margin-top: 70px;
  width: 100vw;
  height: calc(100vh - 70px);

  //主内容样式
  //左右布局
  .chat-main {
    width: 100%;
    height: 100%;
    padding: 10vh 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: relative;

    //上下布局
    .chat-wrapper {
      width: 83vw;
      height: calc(80vh - 70px);
      background-color: var(--background-wrapper);
      border-radius: 20px;
      display: flex;
      align-items: stretch;
    }

    //路由内容
    .router-class{
      flex: 1;
    }


    //网站底部样式
    .footer {
      position: absolute;
      bottom: 2vh;
      left: 0;
      width: 100%;
      padding: 12px;
      font-size: 12px;
      color: var(--font-main);
      text-align: center;
    }
  }


}

//媒体查询适配移动端
@media only screen and (max-width: 640px) {
  .chat {
    .chat-main {
      padding: 0;

      .chat-wrapper {
        flex-direction:column-reverse;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transition: width 0.5s;
      }

      .footer {
        display: none;
      }
    }
  }
}
